<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <script>
    //name/age/heigth称之为函数的参数（形参，形式参数）
  function printInfo(name,age,height) {
    console.log(`my name is ${name}`)
    console.log(`age is ${age} `)
    console.log(`height is ${height}`)
  }
  
  //why/18/1.61为函数的实参，实际参数
  printInfo("cyh",18,1.61)
  printInfo("why",20,1.88)
  function sum(num1,num2) {
    var sum1=num1+num2
    return sum1

  }
  sum(10,20)
  </script>
</body>
</html>